interface responseData {
  code: number,
  ok: boolean,
  message: string
}

export interface permissionParams {
  id?: number,
  pid?: number,
  name?: string,
  code?: null,
  level?: number,
}

export interface permissionItemType {
  id?: number,
  createTime?: string,
  updateTime?: string,
  pid?: number,
  name?: string,
  code?: null,
  toCode?: null,
  type?: number,
  status?: null,
  level?: number,
  childred?: permissionItemType[],
  select?: boolean
}
export interface permissionListType extends responseData {
  data: permissionItemType[]
}